import { request } from './index'

// 获得banner 和 swiper数据
export function GetHomeData () {
  return request({
    url: '/api/index',
    method: 'get'
  })  
}

// 获得tab选项卡分类数据
export function getHomeGoods (type: string | undefined, page: number) {
  return request({
    url: '/api/index?' + type + '=1&page=' + page,
    method: 'get'
  })
}